﻿<!DOCTYPE html>

<html class="x-admin-sm" xmlns:th="http://www.thymeleleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; Charset=gb2312">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <title></title>
    <link href="/layui/css/layui.css" rel="stylesheet" />
    <script src="/layui/layui.js"></script>
    <link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="/css/global.css" rel="stylesheet" />
    <link href="/css/prettify.css" rel="stylesheet" />
    <link href="/css/detail.css" rel="stylesheet" />
    <script src="/js/front/global.js"></script>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
</head>
<body>

    <!-- 主体（一般只改变这里的内容） -->
    <div class="blog-body">
        <div class="blog-container">
            <div class="blog-main">
                <!--<div class="blog-main-left">-->
                    <div class="article-detail shadow">
                        <div class="article-detail-title" id="newsTitle">
                        </div>
                        <div class="article-detail-info">
                            <span id="releaseTime"></span>
                        </div>
                        <div class="article-detail-content" id="newsContent">

                        </div>
                    <!--</div>-->
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
<!--遮罩-->
<div class="blog-mask animated layui-hide"></div>
<script th:inline="javascript">
    layui.use(['jquery','code','util'], function(){
        var $ = layui.jquery;
        var util = layui.util;
        var sysNews = [[${sysNews}]];

        init_detail();
        layui.code();
        /**
         * 加载新闻详情
         */
        function init_detail() {
            $("#newsTitle").text(sysNews.newsTitle);
            $("#releaseTime").text("编辑时间："+util.toDateString(sysNews.createTime, "yyyy-MM-dd HH:mm:ss"));
            $("#newsContent").html(sysNews.newsContent);
        }
    });
</script>
</body>
</html>